import logging
import os
import sys

DIR_BASE = os.path.dirname(os.path.dirname(__file__))
sys.path.append(DIR_BASE)

# 单接口 epic
single_epic = 'xxx 系统 单接口测试'
# 业务接口 epic
business_epic = 'xxx 系统 业务接口测试'

# log日志输出级别
LOG_LEVEL = logging.INFO  # 文件
STREAM_LOG_LEVEL = logging.INFO  # 控制台

# 接口超时时间，单位/s
API_TIMEOUT = 60

# 钉钉机器人
secret = "SECeb733915c5527442a852e09abc546aa76612a8a78b023bd6596cf62e7ca88445"
webhook = "https://oapi.dingtalk.com/robot/send?access_token=72badf9a799f3bccda0cd94ecce0bc2ee85daa3544a1ad03062629aadb5f3a41"
# 是否发送钉钉消息
dd_msg = True

# 文件路径
FILE_PATH = {
    'CONFIG': os.path.join(DIR_BASE, 'config/config.ini'),
    'LOG': os.path.join(DIR_BASE, 'logs'),
    'EXTRACT': os.path.join(DIR_BASE, 'extract.yaml'),
    'DOWNLOAD': os.path.join(DIR_BASE, 'data/download'),  # 文件下载路径
    'SINGLE': os.path.join(DIR_BASE, 'data/yaml/Single interface'),  # 单接口测试文件目录
    'BUSINESS': os.path.join(DIR_BASE, 'data/yaml/Business interface'),  # 业务接口测试文件目录
}

# 默认请求头信息
LOGIN_HEADERS = {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Connection': 'keep-alive'
}
